/*
 * Copyright (c) 2019.  鼎捷软件股份有限公司.All rights reserved.
 */

package com.digiwin.dap.middleware.entity;


import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 所有带Id字段且作为不可重复主键的实体
 */
@MappedSuperclass
public abstract class BaseEntityWithId extends BaseEntity {
    /**
     * 账号id
     */
    @Column(name = "ID", unique = true, nullable = false, length = 40)
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
